<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		
	<script type="text/javascript">
		
		var iphone9 = {
			color:'土豪金',
			price:'8000元',
			size:'5.5吋',
			weight:'200g',
			chat:function(){
				alert('能聊天')
			},
			call:function(){
				alert('能打电话')
			}
		}
//		对象的遍历
		for (x in iphone9) {
			document.write(x+'=>'+iphone9[x]+'<br />');
		}
		
	</script>
		
	</head>
	<body>
	</body>
</html>
